namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("S_BLENDSAMPLE")]
    public partial class S_BLENDSAMPLE
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public S_BLENDSAMPLE()
        {
            S_BLENDSAMPLE_DETAIL = new HashSet<S_BLENDSAMPLE_DETAIL>();
        }

        [Key]
        [StringLength(40)]
        public string BLEND_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string BLEND_CODE { get; set; }

        public bool? SAMPLE_TYPE { get; set; }

        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        public decimal? BLEND_WEIGHT { get; set; }

        [StringLength(40)]
        public string P_USER_ID { get; set; }

        public DateTime? P_TIME { get; set; }

        public bool? STATUS { get; set; }

        [StringLength(40)]
        public string BLEND_USER_ID { get; set; }

        [StringLength(32)]
        public string RFID { get; set; }

        public DateTime? BEGIN_TIME { get; set; }

        public DateTime? END_TIME { get; set; }

        public bool? MADE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<S_BLENDSAMPLE_DETAIL> S_BLENDSAMPLE_DETAIL { get; set; }
    }
}
